<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>

</style>

<body>
    <div id="app">
        <p :id="2*3" :style="{background:bg}">我是p段落标签</p>
        <p>
            <img :src="imgSrc" alt="">
        </p>
        <p>{{imgSrc}}</p>
    </div>
    <script src="./base/vue.min.js"></script>
    <script>
        //v-bind 属性绑定  可以简写为   :  
        //绑定常用的属性  id/class/style    img:src属性  
        new Vue({
            el:"#app",
            data:{
                bg:"pink",
                imgSrc:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1560837330028&di=3662628ed614ceeae33cb4c3a8c8e98f&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201611%2F10%2F20161110182723_4m3jT.thumb.700_0.jpeg"
            }
        })
    </script>
</body>

</html>